<?php
 require_once("/../../../../includes/controller/initialize.php"); 


if(isset($_GET['id'])){
$commentid = $_GET['id'];

$comment = Comment::find_by_id($commentid);
}
?>


 <div class="userid">

        <?php $commentid = $comment->id;
        
        
        ?>
            <div id="likefelt">
                <div id="likebuttons">
                <form name="likeordislike" method="post" >
                   <input type="button" id="like" name="like" value="1" onclick="rad.like('like<?php echo $commentid ?>',<?php echo $commentid ?> )"/> 
                    <input type="hidden" id="commid" name="commid" value="<?php echo $commentid?>">

                   <input type="button" id="dislike" name="like" value="2" onclick="rad.dislike('dislike<?php echo $commentid ?>',<?php echo $commentid ?> )" />
                
                    
                </form>
                    <?php echo "<PRE>  ".htmlentities($comment->likes);  
                          echo " | ".htmlentities($comment->dislikes). "</PRE>"; ?> 
            </div>
                <h6>Kommentar: </h6> 
                <?php 
                
                
                $c = stripslashes($comment->comment);
                echo $c;
                
                ?> </br> </br>
                
                
            </div>
        </div>